*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: rgb(245, 240, 240);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
button {
    width: 80px;
    height: 30px;
    border: 1px solid #dad9d9;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    margin: 10px;

}
button::after{
    display: block;
    height: 20px;
    width: 20px;
    background-color: red;
    content: attr(data-num);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: #FFFFFF;
    position: absolute;
    right: -5px;
    top:-8px
}
button:nth-child(2)::after{
    background-color: skyblue;
}
